﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Chat.Server
{
    /// <summary>
    /// Sent by the chat server to related clients, notifying them about the
    /// text message sent by some chat client.
    /// </summary>
    [Serializable]
    public class MessageCmd : ServerCmd
    {
        /// <summary>
        /// The message data.
        /// </summary>
        public MessageData MessageData { get; protected set; }
        /// <summary>
        /// The color the message text should be displayed by clients in.
        /// </summary>
        public Color TextColor { get; protected set; }

        public MessageCmd(MessageData msgData, Color textColor)
        {
            MessageData = msgData;
            TextColor = textColor;
        }
    }
}
